package com.weixin.paleituo.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.ArrayList;
import java.util.List;

/**
 * Author yichao
 * Time  2018/7/12 13:57
 * Dest  售后申请
 */

public class AfterSaleRequestBean implements Parcelable{

        /**
         * custService : 028-85922298
         * firstOrderList : [{"orderDetailsId":187,"address":"四川省成都市温江区 成都中医药大学","phone":"18408271729","createTime":"2018-07-10 10:43:20","goodsList":[{"goodsSalenum":1,"goodsId":1239,"listUrl":"http://p35r91t1w.bkt.clouddn.com/upload/goods_list_img/d1b3474b-f772-46c7-a528-3e6715663ce7.jpg","id":234,"goodsName":"舒社超市 客厅 沙发 三位沙发 K002-C 胡桃色","serviceStatus":1}],"orderDetailNum":"20180710906002873647","storeName":"舒社超市","storeId":99,"linkman":"王述"}]
         * afterSaleList : [{"serviceOrderForm":"201807102561","statues":1,"receiver":"","receiveAddress":"","gid":233,"listUrl":"http://p35r91t1w.bkt.clouddn.com/upload/goods_list_img/c86c3d95-58ef-4c71-97cd-581464d70683.jpg","afterSaleNum":1,"goodsName":"舒社超市 卧房 床 KA09T8 原木色","afterSaleId":1,"type":1,"message":"您的服务单已申请成功，待售后审核中","orderDetailId":186,"receiverPhone":"","shipNo":"","proUrls":[],"storeName":"舒社超市"}]
         */

        private String custService;
        private List<FirstOrderListBean> firstOrderList;
        private List<AfterSaleListBean> afterSaleList;

        public String getCustService() {
            return custService;
        }

        public void setCustService(String custService) {
            this.custService = custService;
        }

        public List<FirstOrderListBean> getFirstOrderList() {
            return firstOrderList;
        }

        public void setFirstOrderList(List<FirstOrderListBean> firstOrderList) {
            this.firstOrderList = firstOrderList;
        }

        public List<AfterSaleListBean> getAfterSaleList() {
            return afterSaleList;
        }

        public void setAfterSaleList(List<AfterSaleListBean> afterSaleList) {
            this.afterSaleList = afterSaleList;
        }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.custService);
        dest.writeList(this.firstOrderList);
        dest.writeList(this.afterSaleList);
    }

    public AfterSaleRequestBean() {
    }

    protected AfterSaleRequestBean(Parcel in) {
        this.custService = in.readString();
        this.firstOrderList = new ArrayList<FirstOrderListBean>();
        in.readList(this.firstOrderList, FirstOrderListBean.class.getClassLoader());
        this.afterSaleList = new ArrayList<AfterSaleListBean>();
        in.readList(this.afterSaleList, AfterSaleListBean.class.getClassLoader());
    }

    public static final Creator<AfterSaleRequestBean> CREATOR = new Creator<AfterSaleRequestBean>() {
        @Override
        public AfterSaleRequestBean createFromParcel(Parcel source) {
            return new AfterSaleRequestBean(source);
        }

        @Override
        public AfterSaleRequestBean[] newArray(int size) {
            return new AfterSaleRequestBean[size];
        }
    };
}

